package com.qt.thread;

/**
 * @Author zsf
 * @Date 2023/10/2 23:25
 * @Version 1.0
 */
public class MyThreadDemo04 {
    public static void main(String[] args) {

        MyThread mt1 = new MyThread("大炮");
        MyThread mt2 = new MyThread("蚊子");

        mt1.start();
        mt2.start();

        int priority = Thread.currentThread().getPriority();
        mt1.setPriority(5);
        mt1.getPriority();
        mt2.getPriority();
        System.out.println(mt1 + ":" + mt1.getPriority());
        System.out.println(mt2 + ":" + mt2.getPriority());



        System.out.println();


    }

}
